package me.zhengjie.config.enums;

public enum ExamTypeEnum {
    S("1", "单选"),
    T("4", "T"),
    M("5", "M"),
    A("6", "A"),
    R("7", "R"),
    ;


    ExamTypeEnum(String code, String atmr) {
        this.code = code;
        this.atmr = atmr;
    }

    public static ExamTypeEnum get(String code){
        ExamTypeEnum[] list = ExamTypeEnum.values();
        for (ExamTypeEnum typeEnum : list) {
            if(typeEnum.getCode().equals(code)){
                return typeEnum;
            }
        }
        return null;
    }

    private String code;
    private String atmr;

    public String getCode() {
        return code;
    }

    public String getAtmr() {
        return atmr;
    }
}
